import { request } from "@/utils/service"

/** 用户列表 */
export function getUserListApi(data: any) {
  return request({
    url:"/system/user/list",
    method: "POST",
    data
  })
}

/** 用户详情 */
export function getUserApi(data: any) {
  return request({
    url:"/system/user/get",
    method: "post",
    data
  })
}

/** 新增用户 */
export function addUserApi(data: any) {
  return request({
    url:"/system/user/add",
    method: "POST",
    data
  })
}


/** 修改用户 */
export function editUserApi(data: any) {
  return request({
    url:"/system/user/update",
    method: "POST",
    data
  })
}

/** 删除用户 */
export function delUserApi(data: any) {
  return request({
    url:"/system/user/delete",
    method: "POST",
    data
  })
}

/** 个人信息 */
export function getUserInfoApi(data: any) {
  return request({
    url:"/system/user/profile",
    method: "POST",
    data
  })
}
/** 重置密码 */
export function resetUserPasswordApi(data: any) {
  return request({
    url:"/system/user/reset/password",
    method: "POST",
    data
  })
}
/** 修改密码 */
export function editUserPasswordApi(data: any) {
  return request({
    url:"/system/user/update/password",
    method: "POST",
    data
  })
}

